fractional_factorial Subroutine

public subroutine fractional_factorial(nfactors, fraction, tbl)

Generates a 2-level fractional factorial design.

Uses standard defining relations for common fractions. The result is expressed in coded variables where the low and high levels are -1 and +1, respectively.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: nfactors

Number of factors.

integer(kind=int32), intent(in) :: fraction

Fraction level (1 for 1/2, 2 for 1/4, etc.).

real(kind=real64), intent(out) :: tbl(:,:)

Design table (runs x factors) in coded variables, where each value is either -1 or +1.